mod dao;

use domain::entity::{Gender, User};
use domain::gateway::UserRepository;
pub struct UserRepositoryWithDB;
impl UserRepository for UserRepositoryWithDB{
    fn save(&self,user: User) -> bool {
        println!("repository saved: {}",user.to_string());
        true
    }
    
    fn query(&self,id: u32) -> User {
        println!("received id : {id}");
        User::create(String::from("Jonny"),19,Gender::MALE)
    }
}